<div class="ukefu-chat-history">
	<h1 class="site-h1">
		咨询内容
	</h1>
	<div id="chat_msg_list" class="chat-message chat_msg_list">
		<#if agentUserMessageList?? && agentUserMessageList.content??>
		<#list agentUserMessageList.content?reverse as chatmessage>
		<div class="clearfix chat-block">
			<div class="<#if chatmessage.userid?? && chatmessage.userid == user.id>chat-right<#else>chat-left</#if>">
				<img alt="" src="/images/im/user.png" class="user-img">
				<div class="chat-message">
					<span class="user">${chatmessage.username!''}</span> 
					<span class="time">${chatmessage.createtime!''}</span>
				</div>
				<div class="<#if chatmessage.userid?? && chatmessage.userid == user.id>chatting-right<#else>chatting-left</#if>">
					<i class="userarrow"></i>
					<div class="chat-content">${(chatmessage.message!'')?no_esc}</div>
				</div>
			</div>
		</div>
		</#list>
		<#elseif curagentuser??>
			<#if curagentuser.status?? && curagentuser.status == "end">
				<div class="clearfix chat-block connect-end" id="agentuser-curstatus">
					<span class="connect-message">用户“${curagentuser.username!''}”已经离开</span>
				</div>
			<#else>
				<div class="clearfix chat-block connect-begin" id="agentuser-curstatus">
					<span class="connect-message">用户“${curagentuser.username!''}”开始对话</span>
				</div>
			</#if>
		</#if>
	</div>
</div>